﻿using System;
using System.Collections.Generic;

namespace Novel.Server.Models;

public partial class User
{
    public int UserId { get; set; }

    public string Username { get; set; } = null!;

    public string PasswordHash { get; set; } = null!;

    public string Salt { get; set; } = null!;

    public DateTime CreatedAt { get; set; }

    public DateTime UpdatedAt { get; set; }

    public bool IsDeleted { get; set; }

    public string Role { get; set; } = null!;

    public Guid? Avatar { get; set; }

    public string Bio { get; set; } = null!;

    public virtual Image? AvatarNavigation { get; set; }

    public virtual ICollection<Comment> Comments { get; set; } = new List<Comment>();

    public virtual ICollection<Favorite> Favorites { get; set; } = new List<Favorite>();

    public virtual ICollection<Novel> Novels { get; set; } = new List<Novel>();
}
